package com.zhanghu.backendZray.pojo.request.role;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author ZhangDong
 * @date 2024/7/24 15:57
 */
@Data
public class RoleRequest {

    @NotNull(message = "id不能为空", groups = {Update.class})
    private Integer id;

    /**
     * 角色中文名称
     */
    @NotEmpty(message = "角色中文名称不能为空", groups = {Create.class, Update.class})
    private String name;

    /**
     * 角色英文名称
     */
    @NotEmpty(message = "角色英文名称不能为空", groups = {Create.class, Update.class})
    private String enName;

    public interface Update {};
    public interface Create {}
}
